package com.appkubes.mall.core.service;

import com.appkubes.base.core.mbp.AbstractBaseService;
import com.appkubes.mall.core.dao.BaseMallAttachmentDao;
import com.appkubes.mall.core.entity.MallAttachment;

import com.appkubes.base.core.entity.vo.PageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author Rongjie
 * @description
 */

public interface BaseMallAttachmentService extends AbstractBaseService<BaseMallAttachmentDao, MallAttachment> {

    MallAttachment getOneByEntity(MallAttachment entity);

    List<MallAttachment> selectListByEntity(MallAttachment entity);

    IPage<MallAttachment> selectPageByEntity(IPage<MallAttachment> page);
    IPage<MallAttachment> selectPageByEntity(PageVO pageVO);

    IPage<MallAttachment> selectPageByEntity(MallAttachment entity, IPage<MallAttachment> page);
    IPage<MallAttachment> selectPageByEntity(MallAttachment entity, PageVO pageVO);

    IPage<MallAttachment> selectPageByEntity(MallAttachment entity, Integer pageNo, Integer pageSize);

    Boolean removeByEntity(MallAttachment entity);
}
